import { axios } from '@/utils/request'
// 统计分析 - 实时监测 - 设备统计
export function getStatisticDevice(data) {
  return axios({
    url: '/backend/statistics/equipment',
    method: 'post',
    data
  })
}

// 统计分析 - 实时监测 - 终端统计
export function getStatisticTerminal(data) {
  return axios({
    url: '/backend/statistics/terminal',
    method: 'post',
    data
  })
}

// 运维概况 - 运维工单统计
export function getStatisticOmOverview(data) {
  return axios({
    url: '/backend/statistics/om/overview',
    method: 'post',
    data
  })
}

// 工单类型统计-饼图
export function getStatisticOmType(data) {
  return axios({
    url: '/backend/statistics/om/type',
    method: 'post',
    data
  })
}

// 运维工单统计- 柱状图
export function getStatisticOm(data) {
  return axios({
    url: '/backend/statistics/om',
    method: 'post',
    data
  })
}

// 终端能耗排名
export function getTerminalEnergyRank(data) {
  return axios({
    url: '/backend/statistics/terminal/ec/rank',
    method: 'post',
    data
  })
}

// 设备告警排名 
export function getDeviceAlarmRank(data) {
  return axios({
    url: '/backend/statistics/equipment/alarm/rank',
    method: 'post',
    data
  })
}

// 企业相应效率排名
export function getEnterpriseRank(data) {
  return axios({
    url: '/backend/statistics/equipment/res/rank',
    method: 'post',
    data
  })
}